import { genMessage } from '../helper';
import antdLocale from 'ant-design-vue/es/locale/en_US';
import vxeTableLocale from 'vxe-table/lib/locale/lang/en-US';
import { merge } from 'lodash-es';

const modulesFiles = import.meta.globEager('./en-US/**/*.ts');
const everyModulesFiles = import.meta.globEager('/src/modules/**/en-US/**/*.ts');
const frameworkFiles = import.meta.globEager('/src/framework/lang/en-US/**/*.ts');

const message = genMessage(modulesFiles, 'en-US');
const moduleMessage = genMessage(everyModulesFiles, 'en-US');
const frameworkMessage = genMessage(frameworkFiles, 'en-US');
merge(message, moduleMessage, frameworkMessage);
export default {
  message: {
    ...message,
    ...vxeTableLocale,
    antdLocale,
  },
  dateLocale: null,
  dateLocaleName: 'en-US',
};
